Skip to content

Instantly share code, notes, and snippets.

@bhaidar
bhaidar / new-laravel-project.md
Created March 5, 2026 12:24
Scaffold a new Laravel 12 project with Vue 3, Inertia.js, TypeScript, Sail, and common packages
description Scaffold a new Laravel 12 project with Vue 3, Inertia.js, TypeScript, Sail, and common packages
arguments
name description
project_name
Name of the new Laravel project (e.g. MyApp)
name description
parent_dir
Parent directory where the project folder will be created (e.g. ~/projects)

Create a new Laravel 12 project named $ARGUMENTS.project_name inside $ARGUMENTS.parent_dir.

@jesserobbins
jesserobbins / claude-cache-timer.md
Last active May 12, 2026 22:30
Claude Code cache timer - status line showing prompt cache TTL with color-coded warnings

Claude Code Cache Timer

A status line + hooks combo that shows how long since your last API call, so you know when your prompt cache has expired (5-minute TTL). Works per-workspace so multiple sessions don't interfere.

Colors:

  • Green: cache warm (< 3 min)
  • Yellow: getting stale (3-4 min)
  • Red: about to expire (4-5 min)
  • Red + "expired": cache is gone, consider starting fresh

Google Nest Wifi QR Code Generation

Create a QR Code for one that is destroyed, misplaced, or removed from Google Nest Wifi access points.

  1. Use the following template to generate the text value for the QR code:

    1V:E100$P:3$R:1$D:700101$S:______________$L:641666004ADA471E$W:F072EA4C4100$H:____.ybc$C:________$
                              ^ ID                                               ^ Wifi ID  ^ Setup Code
    
@emtee40
emtee40 / Fdroid Repository List.md
Created May 19, 2023 19:59
List of F-Droid Repositories

State: Dec. 2021


----------------------------- Main repos -----------------------------

F-Droid Main

Description: Official F-Droid repository, serving apps build directly from its source code & signed by F-Droid.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@calebrob6
calebrob6 / download_s2.py
Created May 9, 2026 05:47
S2 super-resolution with gaussian splats
#!/usr/bin/env python3
"""Download a Sentinel-2 time series from the Microsoft Planetary Computer.
Companion script for the blog post "Super-Resolving Sentinel-2 with Gaussian
Splats" (https://geospatialml.com/posts/sentinel2-superresolution/).
Pulls N cloud-free Sentinel-2 L2A scenes over a configurable AOI, crops to a
common pixel window, and writes one 4-band GeoTIFF per scene (B02 Blue,
B03 Green, B04 Red, B08 NIR; uint16 reflectance in 0..10000).
@zombie110year
zombie110year / mapnames.toml
Last active May 12, 2026 22:16
Lookup table for Left 4 Dead 2 maps (official and a part of unofficial).
# Unofficial
[[mapnames]]
name_zh = "2019 II:Metal Gear Blart"
name = "2019 II:合金装备"
maps = [
"2019ii_fourth_plaza",
"2019ii_fourth_streets",
"2019ii_blart_battle",
"2019ii_fourth_outside",
"2019ii_fourth_getup",
@mcollina
mcollina / guide.md
Created April 30, 2026 09:41
Configuring minimum release age across npm, pnpm, and yarn

Configuring minimum release age across npm, pnpm, and yarn

Setting a minimum release age (a "cooldown") on dependencies is a cheap, high-leverage defense against supply-chain attacks. Most malicious package versions are detected and yanked within hours, so a 24-hour delay filters out the smash-and-grab incidents (axios 1.14.1, ua-parser-js, Solana web3.js, etc.).

All three major Node.js package managers now support this, but each one used a different name and a different unit. Here is what you need.

Minimum versions

Tool Setting Unit Introduced in
@stephancasas
stephancasas / http-server.jxa.js
Created March 12, 2024 16:29
A basic HTTP server built in JXA for macOS
#!/usr/bin/env osascript -l JavaScript
ObjC.bindFunction('malloc', ['void*', ['int']]);
ObjC.bindFunction('memset', ['void*', ['void*', 'int', 'int']]);
ObjC.bindFunction('listen', ['int', ['int', 'int']]);
ObjC.bindFunction('socket', ['int', ['int', 'int', 'int']]);
ObjC.bindFunction('accept', ['int', ['int', 'void*', 'void*']]);
ObjC.bindFunction('bind', ['int', ['int', 'void*', 'int']]);